#include "syscall.h"
#include "print.c"

#define PROCESSES	10
#define MAIN_TICKS	50

int main()
{
	int i;
	int processID;
	int printMsg[5];

	printString("-------------- Starting Test Maximum Exec & Fork --------------\n");
	
	printMsg[0] = PROCESSES;

	printf("-> We are trying to execute %d max_fork_test programs...\n", printMsg);
	for (i = 1; i <= PROCESSES; i++) {
		printf("-> Executing max_fork_test...\n", printMsg);
		printMsg[0] = i;
		processID = Exec("../test/max_fork_test", 21);
		if (processID == -1) {
			printf("!!!! Execute program attempt [%d] failed !!!!\n", printMsg);
		}
	}

	Exit(0);
}
